-- GENERATED SPELL FOR [Rabid Warhound] --


function spell0_17669(pUnit, Event) --@Carnivorous Bite,n/a--
pUnit:FullCastSpellOnTarget(30639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17669', 15000, 1)
end

function spell1_17669(pUnit, Event) --@Furious Howl,n/a--
pUnit:FullCastSpellOnTarget(30636,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17669', 10000, 1)
end

function spell2_17669(pUnit, Event) --@Furious Howl,n/a--
pUnit:FullCastSpellOnTarget(35942,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17669', 10000, 1)
end

function Sorts_17669(pUnit, Event)
local choix_sorts_17669 = math.random(0, 2)
if choix_sorts_17669 == 0 then
pUnit:RegisterEvent('spell0_17669', 1, 1)
end
if choix_sorts_17669 == 1 then
pUnit:RegisterEvent('spell1_17669', 1, 1)
end
if choix_sorts_17669 == 2 then
pUnit:RegisterEvent('spell2_17669', 1, 1)
end
end

function mob17669_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17669', math.random(1500, 3000), 1)
end

function mob17669_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17669_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17669_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17669, 1, 'mob17669_Action')
RegisterUnitEvent(17669, 2, 'mob17669_Leave')
RegisterUnitEvent(17669, 3, 'mob17669_Kill')
RegisterUnitEvent(17669, 4, 'mob17669_Die')
